import hbase.HBaseUtil;
import org.apache.hadoop.hbase.client.Admin;
import org.apache.hadoop.hbase.util.Bytes;

import java.io.IOException;
import java.util.*;

/**
 * Created by Administrator on 2017/7/6.
 */
public class Test {
    static Queue<Integer> q = new PriorityQueue<Integer>();

    public static void main(String args[]) throws IOException {
//        String s="12345,";
//        Queue<String> list=new ArrayList<String>();
//        list.add("1");
//        Queue<String> queue=new LinkedList<String>();
//        System.out.println(queue);
//        queue.add("1");
//        System.out.println(queue);
//        queue.add("2");
//        System.out.println(queue);
//        queue.add("3");
//        System.out.println(queue);
//        queue.remove();
//        System.out.println(queue);
//
//        list.add("2");
//        list.add("3");
//        System.out.println(list.contains("3"));
//        list.add("4");
//        System.out.println(list.toString().contains("3,"));
//        System.out.println(list.toString().contains("4,"));
//        String[] ss=s.split(",");
//        if(s.startsWith(",")){
//            System.out.print("hello");
//        }
//        System.out.print(ss.length);
       Admin admin = HBaseUtil.getHBASECONFIG().getConnection().getAdmin();
       admin.move(Bytes.toBytes("ce647de9dd221ddc7d99fea9155a1241"),Bytes.toBytes("hrslave01,16020,1498810619807"));
        admin.move(Bytes.toBytes("7f6372588098bb72948228ba85298f9d"),Bytes.toBytes("hrslave01,16020,1498810619807"));
        admin.move(Bytes.toBytes("8fc7f97fde09df02190d85b9a8ae4968"),Bytes.toBytes("hrslave01,16020,1498810619807"));
        admin.move(Bytes.toBytes("a9507c5540ffa73a69c266a216fde204"),Bytes.toBytes("hrslave01,16020,1498810619807"));




       admin.move(Bytes.toBytes("4e5bfc9bb6a0c63322efbc5ee4fa5b0c"),Bytes.toBytes("hrslave02,16020,1498810620170"));
        admin.move(Bytes.toBytes("04ad01ddb9b7c4e75591f34f66259802"),Bytes.toBytes("hrslave02,16020,1498810620170"));
       admin.move(Bytes.toBytes("3753ef96b9b7b5874bd201dfa17efb31"),Bytes.toBytes("hrslave02,16020,1498810620170"));
        admin.move(Bytes.toBytes("3adea2414c691a8d4c8cb0971a2d1521"),Bytes.toBytes("hrslave02,16020,1498810620170"));
        admin.move(Bytes.toBytes("97a0d7d55cc99ecd87a5a53e8a539615"),Bytes.toBytes("hrslave02,16020,1498810620170"));
        admin.move(Bytes.toBytes("1aff320c556cf393bf1682810436b5a4"),Bytes.toBytes("hrslave02,16020,1498810620170"));

        admin.move(Bytes.toBytes("80ccd7402675d8120a185c722d0f2e8b"),Bytes.toBytes("hrslave02,16020,1498810620170"));
        admin.move(Bytes.toBytes("211a655f3ca9cbebb3ba9366b8d5bc4e"),Bytes.toBytes("hrslave02,16020,1498810620170"));
        admin.move(Bytes.toBytes("1ea146fb9b4f228f2df428551b46bcd1"),Bytes.toBytes("hrslave02,16020,1498810620170"));
        admin.move(Bytes.toBytes("b8c08e782799b29257eba8f7d42c29e5"),Bytes.toBytes("hrslave02,16020,1498810620170"));
        admin.move(Bytes.toBytes("3cf9dc4f091eb1a804408a2e17b2a180"),Bytes.toBytes("hrslave02,16020,1498810620170"));


        admin.move(Bytes.toBytes("d47f811e83e5bf5e7185d30db8bf43e3"),Bytes.toBytes("hrslave02,16020,1498810620170"));
        admin.move(Bytes.toBytes("a6878fccd74f395ca0453a75d7b6ec2d"),Bytes.toBytes("hrslave02,16020,1498810620170"));
        admin.move(Bytes.toBytes("f28c9e60c6c87f52d3a84ac86569deb1"),Bytes.toBytes("hrslave02,16020,1498810620170"));
        admin.move(Bytes.toBytes("ee00bf56f09aba22992d37dbe801736d"),Bytes.toBytes("hrslave02,16020,1498810620170"));
        admin.move(Bytes.toBytes("158cea2112ea2a5094f01c0fbddf00e6"),Bytes.toBytes("hrslave02,16020,1498810620170"));


//        Double a = 1.4;
//        Double b = 7.0;
//        Integer c = 20;
//        Double d=b/c;
//        System.out.print(d);
//        System.out.print(a/d);

    }
}
